﻿using System;

namespace Equation.Enterprise.Framework.Domain.Model
{
    [Serializable]
    public class EntityWithTypedId<T> : IEntityWithTypedId<T>
    {
        public virtual T Id
        {
            get; set; //protected set;
        }

        public virtual bool IsTransient()
        {
            return this.Id==null || this.Id.Equals((default(T)));
        }
    }
}
